package com.demo.spring.IOC的源码分析;

import org.springframework.beans.factory.InitializingBean;

public class MessageServiceImpl implements MessageService, InitializingBean {

	public MessageServiceImpl() {
		super();
		System.out.println("MessageServiceImpl init!");
	}

	private String mobile;

    public String getMessage() {
        return "hello world";
    }

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	@Override
	public void afterPropertiesSet() throws Exception {
		System.out.println("[接口InitializingBean.afterPropertiesSet() ]");
	}

}